/**
 * Desc: 这个地方用来设置路由的懒加载
 */
import {lazy} from 'react'


const Dashboard = lazy(() => import('../components/Dashboard'));
// const Dashboard = lazy(() => Loadable({loader: () => import('../components/Dashboard'), loading: Loading}));
const Setting = lazy(() => import('../components/Setting'));
const Notification = lazy(() => import('../components/Notification'));
const Cms = lazy(() => import('../components/Cms'));
const Ums = lazy(() => import('../components/Upms'));
const SysLogManager = lazy(() => import('../components/SysManage/SysLogManager'));
const MenuManager = lazy(() => import('../components/SysManage/SysMenuManager'));
//



const routeMapList: any[] = [
    {
        path: '/app/dashboard',
        component: Dashboard,
    },
    {
        path: '/app/cms',
        component: Cms,
    },
    {
        path: '/app/ums',
        component: Ums,
    },
    {
        path: '/app/setting',
        component: Setting,
    },
    {
        path: '/app/notification',
        component: Notification,
    },

    {
        path: '/app/sysManager/menuManager',
        component: MenuManager,
    },

    {
        path: '/app/sysManager/logManager',
        component: SysLogManager,
    },



];

export default routeMapList;

